<template>
	<view>
		<list-cell icon="iconfont icon-my-gaojingxinxi" iconColor="#00aaff" fontSize="46rpx" title="报警记录" @eventClick="goPageCheckLogin('/package_isp/pages/alarm/alarmList',true)"></list-cell>
		<list-cell icon="iconfont icon-my-dengjixinxi" iconColor="#00aaff" fontSize="46rpx" title="登记记录" @eventClick="goPageCheckLogin('/package_isp/pages/epidemic/recordList',true)"></list-cell>
		<list-cell icon="iconfont icon-my-shenbaojilu" iconColor="#00aaff" fontSize="46rpx" title="申报记录" @eventClick="goPageCheckLogin('/package_biz/pages/declare/declareList',true)"></list-cell>
		<!-- <list-cell icon="iconfont icon-my-zhengbingjilu" iconColor="#00aaff" fontSize="46rpx" title="缴费记录" @eventClick="goPagePay()"></list-cell> -->
		<list-cell icon="iconfont icon-my-zhengbingjilu" iconColor="#00aaff" fontSize="46rpx" title="征兵记录" @eventClick="goPageCheckLogin('/package_isp/pages/conscription/myApply',true)"></list-cell>
		<list-cell icon="iconfont icon-my-tousujianyi" iconColor="#00aaff" fontSize="46rpx" title="投诉建议记录" @eventClick="goPageCheckLogin('/package_biz/pages/suggestions/suggestions',true)"></list-cell>
		<!-- 	<list-cell icon="iconfont icon-my-shegongfuwu" iconColor="#00aaff" fontSize="46rpx" title="社工服务记录" @eventClick="goPageCheckLogin('',true)"></list-cell> -->
	</view>
</template>

<script>
	import listCell from '@/components/mix-list-cell';
	export default {
		data() {
			return {

			}
		},
		methods: {
			goPagePay(url) {
				// 判断是团员还是党员（不是团员也不是党员就提示让物业增加信息）
				let ownerInfo = uni.getStorageSync("userInfo").ownerInfo
				if (ownerInfo && ownerInfo.attribute) {
					let ownerType = ownerInfo.attribute
					console.log(ownerType)
					if (ownerType == "PARTY_MEMBER") {
						uni.navigateTo({
							url: "/package_isp/pages/pay/partyPay?pageType=1"
						})
					} else if (ownerType == "LEAGUE_MEMBER") {
						uni.navigateTo({
							url: "/package_isp/pages/pay/leaguePay?pageType=1"
						})
					} else {
						this.$api.msg("您入团（党）信息还未登记，请联系乡村登记信息！")
					}
				}else{
					this.$api.sysauth.checkLoginAndBindCommunity(url);
				}
			},

			goPageCkeckLoginAndCommunity(url) {
				this.$api.sysauth.checkLoginAndBindCommunity(url);
			},

			goPageCheckLogin(url) {
				this.$api.sysauth.checkLogin(url);
			},
		},
		components: {
			listCell
		}
	}
</script>

<style>
</style>
